www.gusucode.com > matlab神经网络原理与实例精解 本书源文件 > 第7章 径向基函数网络/example7_9.m

    % example7_9.m
n = [0; 1; -0.5; 0.5]		% 网络输入向量

a = compet(n);              	% 求网络输出
subplot(2,1,1), bar(n), ylabel('n')
subplot(2,1,2), bar(a), ylabel('a')